<template>
  <div class="di">
    <p class="top">{{ sch.content }}</p>
    <h2>相关活动</h2>
    <div class="hd">
      <img :src="sch.url" alt="" />
      <span>【探索神秘地带】{{ sch.title }}</span>
      <span>国庆节特价，全家有，带你去世上最美的地方</span>
      <div @click="hd(sch.id)">
        <i class="el-icon-right"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "di",
  props: ["sch"],
  methods: {
    hd(value) {
      this.$store.commit("gaiid", value);
      this.$router.push({ name: "Huodong" });
    },
  },
};
</script>

<style lang="scss" scoped>
.di{
  padding-bottom: 20px;
}
.top {
  margin-top: 10px;
}
h2 {
  margin-top: 15px;
  margin-bottom: 10px;
}
.hd {
  width: 90%;
  height: 210px;
  border-radius: 10px;
  margin: auto;
  position: relative;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: left;
  // background-color: red;
  box-shadow: 0px 0px 5px rgba(68, 68, 68, 0.753);
  > img {
    width: 100%;
    height: 150px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 5px;
    // height: 125px;
  }
  > span:nth-of-type(2) {
    margin-top: 5px;
    font-size: 12px;
    color: gray;
  }
  > div {
    width: 30px;
    height: 30px;
    position: absolute;
    text-align: center;
    line-height: 30px;
    bottom: 15px;
    right: 15px;
    border: 1px solid #000;
    cursor: pointer;
  }
}
</style>